package router

import (
	"github.com/kataras/iris/v12"
	"wit-admin-go/system/app/controller"
)

func User(app iris.Party) {
	user := app.Party("/user")
	{
		user.Get("/getUserById", controller.User.GetUserById).Name = "用户详情"
		user.Get("/getUserInfo", controller.User.GetUserInfo).Name = "用户详情"
		user.Get("/getUserList", controller.User.GetList).Name = "用户列表"
		user.Delete("/deleteUser", controller.User.DeleteUser).Name = "删除用户"
		user.Delete("/removeUser", controller.User.RemoveUser).Name = "永久删除用户"
		user.Put("/updateUser", controller.User.UpdateUser).Name = "更新用户"
		user.Put("/updateUserPassword", controller.User.UpdateUserPassword).Name = "修改用户密码"
		user.Put("/updatePassword", controller.User.UpdatePassword).Name = "修改密码"

	}
}
